package com.fhzn.auth.web.request;

import com.google.common.base.MoreObjects;
import lombok.Data;

import java.util.Collections;
import java.util.List;

/**
 * @author 老顾
 * @apiNote
 * @since 2023/12/27
 */
@Data
public class RoleResourceRequest extends RoleOpRequest {

    private List<Integer> resourceList;

    public List<Integer> getResourceList() {
        return MoreObjects.firstNonNull(resourceList, Collections.emptyList());
    }
}
